<?php 
	$uri=$this->uri->segment(1);
	$this->load->view('template/header');
	if($uri){
		if($page){
			$this->load->view($uri.'/'.$page); 
		} else {
			$this->load->view($uri.'/index'); 
		}
	} else {
		if($page){
			$this->load->view('index/'.$page); 
		} else {
			$this->load->view('index/index'); 
		}
	}
	$this->load->view('template/footer');
?>